home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group95b.txt
/
000082_icon-group-sender _Tue Jul 11 06:52:34 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1995-09-18
|
2KB
Received: by cheltenham.cs.arizona.edu; Tue, 11 Jul 1995 08:48:33 MST
Date: Tue, 11 Jul 1995 06:52:34 -0500 (CDT)
From: "Chris D. Tenaglia" <cdt@post.its.mcw.edu>
To: gep2@computek.net
Cc: icon-group@cs.arizona.edu
Subject: Re: DOS delay routine
In-Reply-To: <9507101724.AA28967@ns1.computek.net>
Message-Id: <Pine.ULT.3.90.950711064810.9684A-100000@post.its.mcw.edu>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Errors-To: icon-group-errors@cs.arizona.edu
That's a good suggestion. Thanks.
I must have been thinking something
along the line of benchmarks to keep it busy calculating, rather
spinning on the clock. Actually I'd like it to "sleep"
during the delay() rather than making the machine busy.
Chris Tenaglia (system manager) | cdt@post.its.mcw.edu
Medical College of Wisconsin |
8701 W. Watertown Plank Rd. | Ce que vous voyez est
Milwaukee, WI 53226 (414)456-8765 | ce que vous obtenez !
On Mon, 10 Jul 1995 gep2@computek.net wrote:
> Date: Mon, 10 Jul 95 17:24 CDT
> From: gep2@computek.net
> To: icon-group@cs.arizona.edu
> Subject: DOS delay routine
>
> >...I needed something to wait about 5 min. between checkups do I wrote
> a little delay route that waits in a little key sensing loop.
>
> # provide a time delay to limited amount of collected data
> #
> procedure delay(n)
> target := n * 250000 # approx 5 min intervals
> every i:= 1 to target do
> {
> if kbhit() then
> {
> kee := getch()
> if kee == "\e" then halt("ESCAPED!")
> }
> 22.0000/7.0000000
> }
> end
>
> I'm curious why you didn't use &time or &clock to do this kind of thing, rather
> than just counting loop iterations or the like... if for no other reason than
> making your routine processor-speed-insensitive!
>
> Gordon Peterson
> http://www.computek.net/public/gep2/
>
>
>